package com.wanwu.channel.biz.channel;

import com.wanwu.channel.biz.TradeOrder;

import java.util.Map;
import java.util.UUID;

public abstract class PayParameterService {

    public abstract Map<String, Object> getPayParameter(String tradeNo);

    protected static TradeOrder queryTradeOrder(String tradeNo) {
        // mock trade order
        TradeOrder tradeOrder = new TradeOrder();
        tradeOrder.setTradeNo(tradeNo);
        tradeOrder.setOutTradeNo(UUID.randomUUID().toString().replace("-", ""));
        tradeOrder.setTotalFee(88.00);
        tradeOrder.setMerchantCode("1000000001");
        tradeOrder.setGoodsBody("西游记");
        tradeOrder.setNotifyUrl("https://notify_url");
        return tradeOrder;
    }

}
